package com.zhuangfei.timetable.listener;

import com.zhuangfei.timetable.ResourceTable;
import ohos.agp.components.Component;
import ohos.agp.components.LayoutScatter;
import ohos.agp.components.ScrollView;

/**
 * 滚动布局构建监听的默认实现
 */

public class OnScrollViewBuildAdapter implements ISchedule.OnScrollViewBuildListener {
    @Override
    public Component getScrollView(LayoutScatter mInflate) {
        Component component = mInflate.parse(ResourceTable.Layout_view_simplescrollview, null, false);
        ScrollView scrollView = (ScrollView) component.findComponentById(ResourceTable.Id_id_scrollview);
        scrollView.addComponent(mInflate.parse(ResourceTable.Layout_view_content, null, false));
        return component;
    }
}
